﻿<Page x:Class="SMS.Shell.Views.CustomerListView"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="300" d:DesignWidth="300"
	Title="CustomerListView">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <ToolBar Grid.Row="0">
            <Button Content="添加" Name="_btnCreate" Click="_btnCreate_Click" />
            <Button Content="修改" Name="_btnUpdate" Click="_btnUpdate_Click" />
            <Button Content="删除" Name="_btnDelete"/>
            <Button Content="设置价格" Name="_btnSetPrice" Click="_btnSetPrice_Click" />
        </ToolBar>
        <DataGrid Name="_gridCustomer" Grid.Row="1" AutoGenerateColumns="False" CanUserAddRows="False" IsReadOnly="True">
            <DataGrid.Columns>
                <DataGridTextColumn Header="名称" Binding="{Binding Caption}" Width="*"/>
                <DataGridTextColumn Header="联系人" Binding="{Binding ContactPerson}" Width="*"/>
                <DataGridTextColumn Header="联系电话" Binding="{Binding Telephone}" Width="*"/>
            </DataGrid.Columns>
        </DataGrid>
    </Grid>
</Page>
